package com.nbsaas.boot.product.rest.convert;

import com.nbsaas.boot.product.data.entity.ProductSpecification;
import com.nbsaas.boot.product.api.domain.simple.ProductSpecificationSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 商品规格-列表对象转换器
*/

public class ProductSpecificationSimpleConvert implements Converter<ProductSpecificationSimple, ProductSpecification> {




@Override
public ProductSpecificationSimple convert(ProductSpecification source) {
    ProductSpecificationSimple result = new ProductSpecificationSimple();

                result.setNote(source.getNote());
                result.setCode(source.getCode());
                result.setProductId(source.getProductId());
                result.setMultiple(source.getMultiple());
                result.setDescription(source.getDescription());
                result.setSort(source.getSort());
                result.setType(source.getType());
                result.setAddDate(source.getAddDate());
                result.setRequired(source.getRequired());
                result.setEnabled(source.getEnabled());
                result.setName(source.getName());
                result.setId(source.getId());
                result.setLastDate(source.getLastDate());


    return result;
}

}